<?php
// +-------------------------------------------------------------------
// | 
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Admin\Controller;

use Kcdns\Admin\Controller\CommonController;

class ZsSellerController extends CommonController
{
    public function add()
    {
    try {
	       if (IS_POST) {
	       	$no = I('post.goods.no','');
		       	if ($no != '') {
		       	   OE('business')->checkNo($no);
		       }
	       }
	       
	       parent::add();
	    } catch (\Exception $e) {
	       $this->error($e->getMessage());
	    }
    }
    
    public function edit()
    {
    	try {
    		if (IS_POST) {
    		  $no = I('post.zs_seller.mid','');
		       	if ($no != '') {
		       	    $member = M('member')->where(['uid'=>$no])->find();
		       	   if(!$member){
                       throw new \Exception('管理员id不存在');
                   }
		       }
    			 
    		}
    		parent::edit();
    	} catch (\Exception $e) {
    		$this->error($e->getMessage());
    	}
    
    }
    
    
    
}